using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetUpdateInfoResponse : GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetUpdateInfoResponse result;
			protected override GetUpdateInfoResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetUpdateInfoResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetUpdateInfoResponse DefaultInstanceForType
			{
				get
				{
					return GetUpdateInfoResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint PackVersion
			{
				get
				{
					return this.result.PackVersion;
				}
				set
				{
					this.SetPackVersion(value);
				}
			}
			public string PackMd5
			{
				get
				{
					return this.result.PackMd5;
				}
				set
				{
					this.SetPackMd5(value);
				}
			}
			public uint PackSize
			{
				get
				{
					return this.result.PackSize;
				}
				set
				{
					this.SetPackSize(value);
				}
			}
			public string PackDescription
			{
				get
				{
					return this.result.PackDescription;
				}
				set
				{
					this.SetPackDescription(value);
				}
			}
			public uint UrlCount
			{
				get
				{
					return this.result.UrlCount;
				}
				set
				{
					this.SetUrlCount(value);
				}
			}
			public IPopsicleList<SKBuiltinString_t> DownLoadUrlList
			{
				get
				{
					return this.PrepareBuilder().downLoadUrl_;
				}
			}
			public int DownLoadUrlCount
			{
				get
				{
					return this.result.DownLoadUrlCount;
				}
			}
			public Builder()
			{
				this.result = GetUpdateInfoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetUpdateInfoResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetUpdateInfoResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetUpdateInfoResponse other = this.result;
					this.result = new GetUpdateInfoResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetUpdateInfoResponse.Builder Clear()
			{
				this.result = GetUpdateInfoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetUpdateInfoResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetUpdateInfoResponse.Builder(this.result);
				}
				return new GetUpdateInfoResponse.Builder().MergeFrom(this.result);
			}
			public override GetUpdateInfoResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetUpdateInfoResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetUpdateInfoResponse)
				{
					return this.MergeFrom((GetUpdateInfoResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetUpdateInfoResponse.Builder MergeFrom(GetUpdateInfoResponse other)
			{
				return this;
			}
			public override GetUpdateInfoResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetUpdateInfoResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetUpdateInfoResponse._getUpdateInfoResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetUpdateInfoResponse._getUpdateInfoResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseResponse.Builder builder = BaseResponse.CreateBuilder();
								if (this.result.hasBaseResponse)
								{
									builder.MergeFrom(this.BaseResponse);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseResponse = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasPackVersion = input.ReadUInt32(ref this.result.packVersion_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasPackMd5 = input.ReadString(ref this.result.packMd5_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 32u)
							{
								this.result.hasPackSize = input.ReadUInt32(ref this.result.packSize_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasPackDescription = input.ReadString(ref this.result.packDescription_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasUrlCount = input.ReadUInt32(ref this.result.urlCount_);
								continue;
							}
							if (num3 == 58u)
							{
								input.ReadMessageArray<SKBuiltinString_t>(num, text, this.result.downLoadUrl_, SKBuiltinString_t.DefaultInstance, extensionRegistry);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetUpdateInfoResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetUpdateInfoResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetUpdateInfoResponse.Builder SetPackVersion(uint value)
			{
				this.PrepareBuilder();
				this.result.hasPackVersion = true;
				this.result.packVersion_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearPackVersion()
			{
				this.PrepareBuilder();
				this.result.hasPackVersion = false;
				this.result.packVersion_ = 0u;
				return this;
			}
			public GetUpdateInfoResponse.Builder SetPackMd5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPackMd5 = true;
				this.result.packMd5_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearPackMd5()
			{
				this.PrepareBuilder();
				this.result.hasPackMd5 = false;
				this.result.packMd5_ = "";
				return this;
			}
			public GetUpdateInfoResponse.Builder SetPackSize(uint value)
			{
				this.PrepareBuilder();
				this.result.hasPackSize = true;
				this.result.packSize_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearPackSize()
			{
				this.PrepareBuilder();
				this.result.hasPackSize = false;
				this.result.packSize_ = 0u;
				return this;
			}
			public GetUpdateInfoResponse.Builder SetPackDescription(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPackDescription = true;
				this.result.packDescription_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearPackDescription()
			{
				this.PrepareBuilder();
				this.result.hasPackDescription = false;
				this.result.packDescription_ = "";
				return this;
			}
			public GetUpdateInfoResponse.Builder SetUrlCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasUrlCount = true;
				this.result.urlCount_ = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearUrlCount()
			{
				this.PrepareBuilder();
				this.result.hasUrlCount = false;
				this.result.urlCount_ = 0u;
				return this;
			}
			public SKBuiltinString_t GetDownLoadUrl(int index)
			{
				return this.result.GetDownLoadUrl(index);
			}
			public GetUpdateInfoResponse.Builder SetDownLoadUrl(int index, SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.downLoadUrl_[index] = value;
				return this;
			}
			public GetUpdateInfoResponse.Builder SetDownLoadUrl(int index, SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.downLoadUrl_[index] = builderForValue.Build();
				return this;
			}
			public GetUpdateInfoResponse.Builder AddDownLoadUrl(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.downLoadUrl_.Add(value);
				return this;
			}
			public GetUpdateInfoResponse.Builder AddDownLoadUrl(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.downLoadUrl_.Add(builderForValue.Build());
				return this;
			}
			public GetUpdateInfoResponse.Builder AddRangeDownLoadUrl(IEnumerable<SKBuiltinString_t> values)
			{
				this.PrepareBuilder();
				this.result.downLoadUrl_.Add(values);
				return this;
			}
			public GetUpdateInfoResponse.Builder ClearDownLoadUrl()
			{
				this.PrepareBuilder();
				this.result.downLoadUrl_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int PackVersionFieldNumber = 2;
		public const int PackMd5FieldNumber = 3;
		public const int PackSizeFieldNumber = 4;
		public const int PackDescriptionFieldNumber = 5;
		public const int UrlCountFieldNumber = 6;
		public const int DownLoadUrlFieldNumber = 7;
		private static readonly GetUpdateInfoResponse defaultInstance;
		private static readonly string[] _getUpdateInfoResponseFieldNames;
		private static readonly uint[] _getUpdateInfoResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasPackVersion;
		private uint packVersion_;
		private bool hasPackMd5;
		private string packMd5_ = "";
		private bool hasPackSize;
		private uint packSize_;
		private bool hasPackDescription;
		private string packDescription_ = "";
		private bool hasUrlCount;
		private uint urlCount_;
		private PopsicleList<SKBuiltinString_t> downLoadUrl_ = new PopsicleList<SKBuiltinString_t>();
		private int memoizedSerializedSize = -1;
		public static GetUpdateInfoResponse DefaultInstance
		{
			get
			{
				return GetUpdateInfoResponse.defaultInstance;
			}
		}
		public override GetUpdateInfoResponse DefaultInstanceForType
		{
			get
			{
				return GetUpdateInfoResponse.DefaultInstance;
			}
		}
		protected override GetUpdateInfoResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint PackVersion
		{
			get
			{
				return this.packVersion_;
			}
		}
		public string PackMd5
		{
			get
			{
				return this.packMd5_;
			}
		}
		public uint PackSize
		{
			get
			{
				return this.packSize_;
			}
		}
		public string PackDescription
		{
			get
			{
				return this.packDescription_;
			}
		}
		public uint UrlCount
		{
			get
			{
				return this.urlCount_;
			}
		}
		public IList<SKBuiltinString_t> DownLoadUrlList
		{
			get
			{
				return this.downLoadUrl_;
			}
		}
		public int DownLoadUrlCount
		{
			get
			{
				return this.downLoadUrl_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasPackVersion && this.hasPackSize && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasPackVersion)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.PackVersion);
				}
				if (this.hasPackMd5)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.PackMd5);
				}
				if (this.hasPackSize)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.PackSize);
				}
				if (this.hasPackDescription)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.PackDescription);
				}
				if (this.hasUrlCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.UrlCount);
				}
				using (IEnumerator<SKBuiltinString_t> enumerator = this.DownLoadUrlList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SKBuiltinString_t current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(7, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetUpdateInfoResponse()
		{
		}
		public SKBuiltinString_t GetDownLoadUrl(int index)
		{
			return this.downLoadUrl_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getUpdateInfoResponseFieldNames = GetUpdateInfoResponse._getUpdateInfoResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getUpdateInfoResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasPackVersion)
			{
				output.WriteUInt32(2, getUpdateInfoResponseFieldNames[5], this.PackVersion);
			}
			if (this.hasPackMd5)
			{
				output.WriteString(3, getUpdateInfoResponseFieldNames[3], this.PackMd5);
			}
			if (this.hasPackSize)
			{
				output.WriteUInt32(4, getUpdateInfoResponseFieldNames[4], this.PackSize);
			}
			if (this.hasPackDescription)
			{
				output.WriteString(5, getUpdateInfoResponseFieldNames[2], this.PackDescription);
			}
			if (this.hasUrlCount)
			{
				output.WriteUInt32(6, getUpdateInfoResponseFieldNames[6], this.UrlCount);
			}
			if (this.downLoadUrl_.Count > 0)
			{
				output.WriteMessageArray<SKBuiltinString_t>(7, getUpdateInfoResponseFieldNames[1], this.downLoadUrl_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasPackVersion)
			{
				num ^= this.packVersion_.GetHashCode();
			}
			if (this.hasPackMd5)
			{
				num ^= this.packMd5_.GetHashCode();
			}
			if (this.hasPackSize)
			{
				num ^= this.packSize_.GetHashCode();
			}
			if (this.hasPackDescription)
			{
				num ^= this.packDescription_.GetHashCode();
			}
			if (this.hasUrlCount)
			{
				num ^= this.urlCount_.GetHashCode();
			}
			using (IEnumerator<SKBuiltinString_t> enumerator = this.downLoadUrl_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					SKBuiltinString_t current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetUpdateInfoResponse getUpdateInfoResponse = value as GetUpdateInfoResponse;
			if (getUpdateInfoResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != getUpdateInfoResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(getUpdateInfoResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasPackVersion != getUpdateInfoResponse.hasPackVersion || (this.hasPackVersion && !this.packVersion_.Equals(getUpdateInfoResponse.packVersion_)))
			{
				return false;
			}
			if (this.hasPackMd5 != getUpdateInfoResponse.hasPackMd5 || (this.hasPackMd5 && !this.packMd5_.Equals(getUpdateInfoResponse.packMd5_)))
			{
				return false;
			}
			if (this.hasPackSize != getUpdateInfoResponse.hasPackSize || (this.hasPackSize && !this.packSize_.Equals(getUpdateInfoResponse.packSize_)))
			{
				return false;
			}
			if (this.hasPackDescription != getUpdateInfoResponse.hasPackDescription || (this.hasPackDescription && !this.packDescription_.Equals(getUpdateInfoResponse.packDescription_)))
			{
				return false;
			}
			if (this.hasUrlCount != getUpdateInfoResponse.hasUrlCount || (this.hasUrlCount && !this.urlCount_.Equals(getUpdateInfoResponse.urlCount_)))
			{
				return false;
			}
			if (this.downLoadUrl_.Count != getUpdateInfoResponse.downLoadUrl_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.downLoadUrl_.Count; i++)
			{
				if (!this.downLoadUrl_[i].Equals(getUpdateInfoResponse.downLoadUrl_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("PackVersion", this.hasPackVersion, this.packVersion_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("PackMd5", this.hasPackMd5, this.packMd5_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("PackSize", this.hasPackSize, this.packSize_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("PackDescription", this.hasPackDescription, this.packDescription_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField("UrlCount", this.hasUrlCount, this.urlCount_, writer);
			GeneratedMessageLite<GetUpdateInfoResponse, GetUpdateInfoResponse.Builder>.PrintField<SKBuiltinString_t>("DownLoadUrl", this.downLoadUrl_, writer);
		}
		public static GetUpdateInfoResponse ParseFrom(byte[] data)
		{
			return GetUpdateInfoResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetUpdateInfoResponse MakeReadOnly()
		{
			this.downLoadUrl_.MakeReadOnly();
			return this;
		}
		public static GetUpdateInfoResponse.Builder CreateBuilder()
		{
			return new GetUpdateInfoResponse.Builder();
		}
		public override GetUpdateInfoResponse.Builder ToBuilder()
		{
			return GetUpdateInfoResponse.CreateBuilder(this);
		}
		public override GetUpdateInfoResponse.Builder CreateBuilderForType()
		{
			return new GetUpdateInfoResponse.Builder();
		}
		public static GetUpdateInfoResponse.Builder CreateBuilder(GetUpdateInfoResponse prototype)
		{
			return new GetUpdateInfoResponse.Builder(prototype);
		}
		static GetUpdateInfoResponse()
		{
			GetUpdateInfoResponse.defaultInstance = new GetUpdateInfoResponse().MakeReadOnly();
			GetUpdateInfoResponse._getUpdateInfoResponseFieldNames = new string[]
			{
				"BaseResponse",
				"DownLoadUrl",
				"PackDescription",
				"PackMd5",
				"PackSize",
				"PackVersion",
				"UrlCount"
			};
			GetUpdateInfoResponse._getUpdateInfoResponseFieldTags = new uint[]
			{
				10u,
				58u,
				42u,
				26u,
				32u,
				16u,
				48u
			};
			object.ReferenceEquals(micromsg.Proto.GetUpdateInfoResponse.Descriptor, null);
		}
	}
}
